﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WpfApplication1.Models
{
    class StatusModel
    {
        private string _id;
        private IDictionary<string, object> _from;
        private string _message;
        private string _story;
        private IDictionary<string, object> _storyTags;
        private string _createdTime;
        private string _updatedTime;
        private string _likeCountText;
        private string _commentCountText;

        public string Id
        {
            get { return _id; }
        }

        public string FromId
        {
            get { return (string)_from["id"]; }
        }

        public string FromName
        {
            get { return (string)_from["name"]; }
        }

        public string Story
        {
            get { return _story; }
        }

        public string UpdateTime
        {
            get { return _updatedTime; }
        }

        public string Message
        {
            get { return _message; }
        }

        public string LikeCountText
        {
            get { return _likeCountText; }
            set { _likeCountText = value; }
        }

        public string CommentCountText
        {
            get { return _commentCountText; }
            set { _commentCountText = value; }
        }

        public StatusModel(string id, IDictionary<string, object> from, string message,
            string story, IDictionary<string, object> storyTags, string createdTime, string updatedTime, string likeCountText, string commentCountText)
        {
            _from = from;
            _id = id;
            _message = message;
            _story = story;
            _storyTags = storyTags;
            _createdTime = createdTime;
            _updatedTime = updatedTime;
            _likeCountText = likeCountText;
            _commentCountText = commentCountText;
        }
    }
}
